import request from '@utils/request';
import { service } from '@utils/service'

export async function getProFieldList(params:any) {
  return request(`${service.SERVICE_ROOT}/proField/list`,{
    method: 'POST',
    data: {
      ...params,
    },
  })
}

export async function updateProField(params:any) {
  return request(`${service.SERVICE_ROOT}/proField/update`,{
    method: 'PUT',
    data: {
      ...params,
    },
  })
}

export async function deleteProField(params:any) {
  return request(`${service.SERVICE_ROOT}/proField/delete`,{
    method: 'DELETE',
    data: {
      ...params,
    },
  })
}

export async function addProField(params:any) {
  return request(`${service.SERVICE_ROOT}/proField/add`,{
    method: 'POST',
    data: {
      ...params,
    },
  })
}
